package cn.controller.order;

import cn.service.orderService.OrderServiceImpl.ReturnSerServiceImpl;
import entity.Result;
import entity.orderEntity.ReturnApplyCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 朱颢阳
 * @description
 * @time 2024/8/28 19:32
 */
@RestController
@CrossOrigin
@RequestMapping("/order")
public class ReturnSerController {
    @Autowired
    ReturnSerServiceImpl service;
    @RequestMapping("/getReturnInfo")
    Result getReturnInfo(@RequestBody ReturnApplyCondition returnApplyCondition){
       return service.getReturnInfo(returnApplyCondition);
    }
    @RequestMapping("/getreturnDetailInfo")
    Result getreturnDetailInfo(Integer return_id){
       return service.getreturnDetailInfo(return_id);
    }
}
